using SqlSugar;
using StudyCompanion.Core.Models;

namespace StudyCompanion.Entity.User;

/// <summary>
///     1.2 用户学习记录
/// </summary>
[SugarTable("use_study_log")]
public class UseStudyLogEntity : BaseEntity
{
    /// <summary>
    ///     用户(use_user.Id)
    /// </summary>
    public long User { get; set; }

    /// <summary>
    ///     视频(stu_course.Id)
    /// </summary>
    public long Course { get; set; }

    /// <summary>
    ///     观看时长
    /// </summary>
    public int WatchTime { get; set; }

    /// <summary>
    ///     最后观看时间
    /// </summary>
    public DateTime RevampTime { get; set; }

    /// <summary>
    ///     创建时间
    /// </summary>
    [SugarColumn(IsOnlyIgnoreInsert = true)]
    public DateTime FoundTime { get; set; }

    /// <summary>
    ///     是否有效
    /// </summary>
    public bool IsValid { get; set; }
}